Optimal. Leaf size=266 \[ -\frac{(b c-a d)^2 \log \left (-\sqrt{2} \sqrt [4]{c} \sqrt [4]{d} \sqrt{x}+\sqrt{c}+\sqrt{d} x\right )}{2 \sqrt{2} c^{3/4} d^{9/4}}+\frac{(b c-a d)^2 \log \left (\sqrt{2} \sqrt [4]{c} \sqrt [4]{d} \sqrt{x}+\sqrt{c}+\sqrt{d} x\right )}{2 \sqrt{2} c^{3/4} d^{9/4}}-\frac{(b c-a d)^2 \tan ^{-1}\left (1-\frac{\sqrt{2} \sqrt [4]{d} \sqrt{x}}{\sqrt [4]{c}}\right )}{\sqrt{2} c^{3/4} d^{9/4}}+\frac{(b c-a d)^2 \tan ^{-1}\left (\frac{\sqrt{2} \sqrt [4]{d} \sqrt{x}}{\sqrt [4]{c}}+1\right )}{\sqrt{2} c^{3/4} d^{9/4}}-\frac{2 b \sqrt{x} (b c-2 a d)}{d^2}+\frac{2 b^2 x^{5/2}}{5 d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.211948, antiderivative size = 266, normalized size of antiderivative = 1., number of steps used = 12, number of rules used = 8, integrand size = 24, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.333, Rules used = {461, 329, 211, 1165, 628, 1162, 617, 204} \[ -\frac{(b c-a d)^2 \log \left (-\sqrt{2} \sqrt [4]{c} \sqrt [4]{d} \sqrt{x}+\sqrt{c}+\sqrt{d} x\right )}{2 \sqrt{2} c^{3/4} d^{9/4}}+\frac{(b c-a d)^2 \log \left (\sqrt{2} \sqrt [4]{c} \sqrt [4]{d} \sqrt{x}+\sqrt{c}+\sqrt{d} x\right )}{2 \sqrt{2} c^{3/4} d^{9/4}}-\frac{(b c-a d)^2 \tan ^{-1}\left (1-\frac{\sqrt{2} \sqrt [4]{d} \sqrt{x}}{\sqrt [4]{c}}\right )}{\sqrt{2} c^{3/4} d^{9/4}}+\frac{(b c-a d)^2 \tan ^{-1}\left (\frac{\sqrt{2} \sqrt [4]{d} \sqrt{x}}{\sqrt [4]{c}}+1\right )}{\sqrt{2} c^{3/4} d^{9/4}}-\frac{2 b \sqrt{x} (b c-2 a d)}{d^2}+\frac{2 b^2 x^{5/2}}{5 d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 461
Rule 329
Rule 211
Rule 1165
Rule 628
Rule 1162
Rule 617
Rule 204
Rubi steps
\begin{align*} \int \frac{\left (a+b x^2\right )^2}{\sqrt{x} \left (c+d x^2\right )} \, dx &=\int \left (-\frac{b (b c-2 a d)}{d^2 \sqrt{x}}+\frac{b^2 x^{3/2}}{d}+\frac{b^2 c^2-2 a b c d+a^2 d^2}{d^2 \sqrt{x} \left (c+d x^2\right )}\right ) \, dx\\ &=-\frac{2 b (b c-2 a d) \sqrt{x}}{d^2}+\frac{2 b^2 x^{5/2}}{5 d}+\frac{(b c-a d)^2 \int \frac{1}{\sqrt{x} \left (c+d x^2\right )} \, dx}{d^2}\\ &=-\frac{2 b (b c-2 a d) \sqrt{x}}{d^2}+\frac{2 b^2 x^{5/2}}{5 d}+\frac{\left (2 (b c-a d)^2\right ) \operatorname{Subst}\left (\int \frac{1}{c+d x^4} \, dx,x,\sqrt{x}\right )}{d^2}\\ &=-\frac{2 b (b c-2 a d) \sqrt{x}}{d^2}+\frac{2 b^2 x^{5/2}}{5 d}+\frac{(b c-a d)^2 \operatorname{Subst}\left (\int \frac{\sqrt{c}-\sqrt{d} x^2}{c+d x^4} \, dx,x,\sqrt{x}\right )}{\sqrt{c} d^2}+\frac{(b c-a d)^2 \operatorname{Subst}\left (\int \frac{\sqrt{c}+\sqrt{d} x^2}{c+d x^4} \, dx,x,\sqrt{x}\right )}{\sqrt{c} d^2}\\ &=-\frac{2 b (b c-2 a d) \sqrt{x}}{d^2}+\frac{2 b^2 x^{5/2}}{5 d}+\frac{(b c-a d)^2 \operatorname{Subst}\left (\int \frac{1}{\frac{\sqrt{c}}{\sqrt{d}}-\frac{\sqrt{2} \sqrt [4]{c} x}{\sqrt [4]{d}}+x^2} \, dx,x,\sqrt{x}\right )}{2 \sqrt{c} d^{5/2}}+\frac{(b c-a d)^2 \operatorname{Subst}\left (\int \frac{1}{\frac{\sqrt{c}}{\sqrt{d}}+\frac{\sqrt{2} \sqrt [4]{c} x}{\sqrt [4]{d}}+x^2} \, dx,x,\sqrt{x}\right )}{2 \sqrt{c} d^{5/2}}-\frac{(b c-a d)^2 \operatorname{Subst}\left (\int \frac{\frac{\sqrt{2} \sqrt [4]{c}}{\sqrt [4]{d}}+2 x}{-\frac{\sqrt{c}}{\sqrt{d}}-\frac{\sqrt{2} \sqrt [4]{c} x}{\sqrt [4]{d}}-x^2} \, dx,x,\sqrt{x}\right )}{2 \sqrt{2} c^{3/4} d^{9/4}}-\frac{(b c-a d)^2 \operatorname{Subst}\left (\int \frac{\frac{\sqrt{2} \sqrt [4]{c}}{\sqrt [4]{d}}-2 x}{-\frac{\sqrt{c}}{\sqrt{d}}+\frac{\sqrt{2} \sqrt [4]{c} x}{\sqrt [4]{d}}-x^2} \, dx,x,\sqrt{x}\right )}{2 \sqrt{2} c^{3/4} d^{9/4}}\\ &=-\frac{2 b (b c-2 a d) \sqrt{x}}{d^2}+\frac{2 b^2 x^{5/2}}{5 d}-\frac{(b c-a d)^2 \log \left (\sqrt{c}-\sqrt{2} \sqrt [4]{c} \sqrt [4]{d} \sqrt{x}+\sqrt{d} x\right )}{2 \sqrt{2} c^{3/4} d^{9/4}}+\frac{(b c-a d)^2 \log \left (\sqrt{c}+\sqrt{2} \sqrt [4]{c} \sqrt [4]{d} \sqrt{x}+\sqrt{d} x\right )}{2 \sqrt{2} c^{3/4} d^{9/4}}+\frac{(b c-a d)^2 \operatorname{Subst}\left (\int \frac{1}{-1-x^2} \, dx,x,1-\frac{\sqrt{2} \sqrt [4]{d} \sqrt{x}}{\sqrt [4]{c}}\right )}{\sqrt{2} c^{3/4} d^{9/4}}-\frac{(b c-a d)^2 \operatorname{Subst}\left (\int \frac{1}{-1-x^2} \, dx,x,1+\frac{\sqrt{2} \sqrt [4]{d} \sqrt{x}}{\sqrt [4]{c}}\right )}{\sqrt{2} c^{3/4} d^{9/4}}\\ &=-\frac{2 b (b c-2 a d) \sqrt{x}}{d^2}+\frac{2 b^2 x^{5/2}}{5 d}-\frac{(b c-a d)^2 \tan ^{-1}\left (1-\frac{\sqrt{2} \sqrt [4]{d} \sqrt{x}}{\sqrt [4]{c}}\right )}{\sqrt{2} c^{3/4} d^{9/4}}+\frac{(b c-a d)^2 \tan ^{-1}\left (1+\frac{\sqrt{2} \sqrt [4]{d} \sqrt{x}}{\sqrt [4]{c}}\right )}{\sqrt{2} c^{3/4} d^{9/4}}-\frac{(b c-a d)^2 \log \left (\sqrt{c}-\sqrt{2} \sqrt [4]{c} \sqrt [4]{d} \sqrt{x}+\sqrt{d} x\right )}{2 \sqrt{2} c^{3/4} d^{9/4}}+\frac{(b c-a d)^2 \log \left (\sqrt{c}+\sqrt{2} \sqrt [4]{c} \sqrt [4]{d} \sqrt{x}+\sqrt{d} x\right )}{2 \sqrt{2} c^{3/4} d^{9/4}}\\ \end{align*}
Mathematica [A] time = 0.110403, size = 249, normalized size = 0.94 \[ \frac{-40 b c^{3/4} \sqrt [4]{d} \sqrt{x} (b c-2 a d)-5 \sqrt{2} (b c-a d)^2 \log \left (-\sqrt{2} \sqrt [4]{c} \sqrt [4]{d} \sqrt{x}+\sqrt{c}+\sqrt{d} x\right )+5 \sqrt{2} (b c-a d)^2 \log \left (\sqrt{2} \sqrt [4]{c} \sqrt [4]{d} \sqrt{x}+\sqrt{c}+\sqrt{d} x\right )-10 \sqrt{2} (b c-a d)^2 \tan ^{-1}\left (1-\frac{\sqrt{2} \sqrt [4]{d} \sqrt{x}}{\sqrt [4]{c}}\right )+10 \sqrt{2} (b c-a d)^2 \tan ^{-1}\left (\frac{\sqrt{2} \sqrt [4]{d} \sqrt{x}}{\sqrt [4]{c}}+1\right )+8 b^2 c^{3/4} d^{5/4} x^{5/2}}{20 c^{3/4} d^{9/4}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.009, size = 452, normalized size = 1.7 \begin{align*}{\frac{2\,{b}^{2}}{5\,d}{x}^{{\frac{5}{2}}}}+4\,{\frac{ab\sqrt{x}}{d}}-2\,{\frac{{b}^{2}\sqrt{x}c}{{d}^{2}}}+{\frac{\sqrt{2}{a}^{2}}{2\,c}\sqrt [4]{{\frac{c}{d}}}\arctan \left ({\sqrt{2}\sqrt{x}{\frac{1}{\sqrt [4]{{\frac{c}{d}}}}}}+1 \right ) }-{\frac{\sqrt{2}ab}{d}\sqrt [4]{{\frac{c}{d}}}\arctan \left ({\sqrt{2}\sqrt{x}{\frac{1}{\sqrt [4]{{\frac{c}{d}}}}}}+1 \right ) }+{\frac{c\sqrt{2}{b}^{2}}{2\,{d}^{2}}\sqrt [4]{{\frac{c}{d}}}\arctan \left ({\sqrt{2}\sqrt{x}{\frac{1}{\sqrt [4]{{\frac{c}{d}}}}}}+1 \right ) }+{\frac{\sqrt{2}{a}^{2}}{2\,c}\sqrt [4]{{\frac{c}{d}}}\arctan \left ({\sqrt{2}\sqrt{x}{\frac{1}{\sqrt [4]{{\frac{c}{d}}}}}}-1 \right ) }-{\frac{\sqrt{2}ab}{d}\sqrt [4]{{\frac{c}{d}}}\arctan \left ({\sqrt{2}\sqrt{x}{\frac{1}{\sqrt [4]{{\frac{c}{d}}}}}}-1 \right ) }+{\frac{c\sqrt{2}{b}^{2}}{2\,{d}^{2}}\sqrt [4]{{\frac{c}{d}}}\arctan \left ({\sqrt{2}\sqrt{x}{\frac{1}{\sqrt [4]{{\frac{c}{d}}}}}}-1 \right ) }+{\frac{\sqrt{2}{a}^{2}}{4\,c}\sqrt [4]{{\frac{c}{d}}}\ln \left ({ \left ( x+\sqrt [4]{{\frac{c}{d}}}\sqrt{x}\sqrt{2}+\sqrt{{\frac{c}{d}}} \right ) \left ( x-\sqrt [4]{{\frac{c}{d}}}\sqrt{x}\sqrt{2}+\sqrt{{\frac{c}{d}}} \right ) ^{-1}} \right ) }-{\frac{\sqrt{2}ab}{2\,d}\sqrt [4]{{\frac{c}{d}}}\ln \left ({ \left ( x+\sqrt [4]{{\frac{c}{d}}}\sqrt{x}\sqrt{2}+\sqrt{{\frac{c}{d}}} \right ) \left ( x-\sqrt [4]{{\frac{c}{d}}}\sqrt{x}\sqrt{2}+\sqrt{{\frac{c}{d}}} \right ) ^{-1}} \right ) }+{\frac{c\sqrt{2}{b}^{2}}{4\,{d}^{2}}\sqrt [4]{{\frac{c}{d}}}\ln \left ({ \left ( x+\sqrt [4]{{\frac{c}{d}}}\sqrt{x}\sqrt{2}+\sqrt{{\frac{c}{d}}} \right ) \left ( x-\sqrt [4]{{\frac{c}{d}}}\sqrt{x}\sqrt{2}+\sqrt{{\frac{c}{d}}} \right ) ^{-1}} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 1.15252, size = 2581, normalized size = 9.7 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 30.7488, size = 612, normalized size = 2.3 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.15362, size = 486, normalized size = 1.83 \begin{align*} \frac{\sqrt{2}{\left (\left (c d^{3}\right )^{\frac{1}{4}} b^{2} c^{2} - 2 \, \left (c d^{3}\right )^{\frac{1}{4}} a b c d + \left (c d^{3}\right )^{\frac{1}{4}} a^{2} d^{2}\right )} \arctan \left (\frac{\sqrt{2}{\left (\sqrt{2} \left (\frac{c}{d}\right )^{\frac{1}{4}} + 2 \, \sqrt{x}\right )}}{2 \, \left (\frac{c}{d}\right )^{\frac{1}{4}}}\right )}{2 \, c d^{3}} + \frac{\sqrt{2}{\left (\left (c d^{3}\right )^{\frac{1}{4}} b^{2} c^{2} - 2 \, \left (c d^{3}\right )^{\frac{1}{4}} a b c d + \left (c d^{3}\right )^{\frac{1}{4}} a^{2} d^{2}\right )} \arctan \left (-\frac{\sqrt{2}{\left (\sqrt{2} \left (\frac{c}{d}\right )^{\frac{1}{4}} - 2 \, \sqrt{x}\right )}}{2 \, \left (\frac{c}{d}\right )^{\frac{1}{4}}}\right )}{2 \, c d^{3}} + \frac{\sqrt{2}{\left (\left (c d^{3}\right )^{\frac{1}{4}} b^{2} c^{2} - 2 \, \left (c d^{3}\right )^{\frac{1}{4}} a b c d + \left (c d^{3}\right )^{\frac{1}{4}} a^{2} d^{2}\right )} \log \left (\sqrt{2} \sqrt{x} \left (\frac{c}{d}\right )^{\frac{1}{4}} + x + \sqrt{\frac{c}{d}}\right )}{4 \, c d^{3}} - \frac{\sqrt{2}{\left (\left (c d^{3}\right )^{\frac{1}{4}} b^{2} c^{2} - 2 \, \left (c d^{3}\right )^{\frac{1}{4}} a b c d + \left (c d^{3}\right )^{\frac{1}{4}} a^{2} d^{2}\right )} \log \left (-\sqrt{2} \sqrt{x} \left (\frac{c}{d}\right )^{\frac{1}{4}} + x + \sqrt{\frac{c}{d}}\right )}{4 \, c d^{3}} + \frac{2 \,{\left (b^{2} d^{4} x^{\frac{5}{2}} - 5 \, b^{2} c d^{3} \sqrt{x} + 10 \, a b d^{4} \sqrt{x}\right )}}{5 \, d^{5}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]